<template>
  <div class="chatWindow">
    <div class="chat-col chat-col-1">
      <div class="leftNavPage">
        <div class="serverList">
          <div class="GPTlogo">
            <img src="../assets/svg/chat.svg" alt="">
          </div>
        </div>
      </div>
    </div>
    <div class="chat-col chat-col-2">
      <div class="slideBar">
        <div class="createNew">
          <div class="van-cell">
            <img src="../assets/svg/add.svg" alt="" style="padding: 4px;">
            <span>New chat</span>
          </div>
          <div class="slideBtn">
            <img src="../assets/svg/icon-sm.svg" alt="">
          </div>
        </div>
      </div>
    </div>
    <div class="chat-col chat-col-3">
      <div class="chatBox">

      </div>
      <div class="inputBox">

      </div>
    </div>
  </div>
</template>


<script setup lang="ts">

</script>

<style>
.chatWindow {
  width: 100%;
  height: 100%;
  display: flex;
}

.chat-col {
  display: block;
  box-sizing: border-box;
  min-height: 1px;
}

.chat-col-1 {
  flex: 0 0 4.16666667%;
  width: 72px;
  max-width: 72px;
  min-width: 72px;
  height: 100%;
}

.leftNavPage {
  background: #171819;
  height: 100%;
}

.serverList {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.GPTlogo {
  width: 50px;
  height: 50px;
  background: #009975;
  color: #fff;
  text-align: center;
  line-height: 66px;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
  /* border-radius: 50%; */
  border-radius: 16px !important;
}

.chat-col-2 {
  flex: 0 0 12.5%;
  width: 240px;
  max-width: 240px;
  min-width: 240px;
  height: 100%;
  /* background: #171819; */
}

.slideBar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  background: #000 !important;
  box-sizing: border-box;
  color: #fff;
  max-width: 260px;
}

.slideBar .createNew {
  padding: 0 10px;
  border: none;
  border-radius: .375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 45px;
}

.slideBar .createNew .van-cell {
  padding: 10px 16px;
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  line-height: 24px;
  border: 1px solid hsla(0, 0%, 100%, .2);
  border-radius: .375rem;
  margin-right: 10px;
}

.slideBar .createNew .slideBtn {
  border: 1px solid hsla(0, 0%, 100%, .2);
  cursor: pointer;
  border-radius: .375rem;
  padding: 10px;
  width: 20px;
  height: 24px;
  line-height: 28px;
}

.chat-col-3 {
  flex: 0 0 83.33333333%;
  position: relative;
  width: calc(100% - 312px);
  min-width: calc(100% - 312px);
  max-width: calc(100% - 312px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chatBox {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: calc(100% - 90px);
}

.inputBox {
  width: 90%;
  height: 90px;
  max-height: 90px;
  padding: 0 5% 10px;
}
</style>
